/*
 * @Description: 请描述此文件
 * @Author: LDM
 * @Date: 2021-09-13 14:58:52
 * @LastEditors: LDM
 * @LastEditTime: 2021-09-13 17:00:33
 */
module.exports = {
  purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
  darkMode: false, // or 'media' or 'class'
  theme: {
    fontFamily: {
      sans: ['Graphik', 'sans-serif'],
      serif: ['Merriweather', 'serif']
    },
    spacing: {
      ...createdPixedUnit(5, 200)
    },
    extend: {}
  },
  variants: {
    extend: {}
  },
  plugins: []
}
function createdPixedUnit(rate, max) {
  if (!max) return {}
  let obj = {}
  for (let index = 1; index <= max; index++) {
    obj[index] = index * rate
  }
  return obj
}
